package com.example.springioc.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: PropertiesController
 * Package: IntelliJ IDEA
 * Description:
 *
 * @Author 谷京京
 * @Create 2023/11/6 19:20
 * @Version 1.0
 */
@RestController
@RequestMapping("/Properties")
public class PropertiesController {
    @Value("${demo.key1}")
    private String key1;
    @RequestMapping("/readKey")
    public String readKey() {
        return key1;
    }
}
